package de.koller.bubble.grow;

import java.math.BigInteger;

public class EarthLift {

	public static final double EARTH_RADIUS = 6371000;
	
	private double volumeUnder( double h ) {
		return 4./3. * Math.pow( h, 3 ) * Math.PI;
	}
	
	public static void main( String[] args ) {
		//x = 1/2*a*t^2
		//t^2 = x / (1/2*a)
		
		BigInteger x = new BigInteger( "1000000" );
		BigInteger a = new BigInteger( "10" );
		BigInteger h = new BigInteger( "2" );
		
		BigInteger t = x.divide( a.divide( h ) );
		
		BigInteger tm = t.divide( new BigInteger( "60" ) );
		BigInteger th = tm.divide( new BigInteger( "60" ) );
		BigInteger td = th.divide( new BigInteger( "24" ) );
		BigInteger ty = td.divide( new BigInteger( "365" ) );
		
		System.out.println( "Sekunden: " + t );
		System.out.println( "Minuten: " + tm );
		System.out.println( "Stunden: " + th );
		System.out.println( "Tage: " + td );
		System.out.println( "Jahre: " + ty );
	}
	
}
